#ifndef LISTSIZERECODER_H
#define LISTSIZERECODER_H

#include <iostream>
#include <fstream>
#include <time.h>
#include "./3gppWorkQueue.h"

using namespace std;

class ListSizeRecoder : virtual public WorkQueue {
	public:
		ListSizeRecoder(const SqlWorkQueuePtr& SqlWorkQueue)
			: mLogFile("./log/ListSizeRecoder.log", ios::app), mRefer(SqlWorkQueue)
		{}
		void run();
		~ListSizeRecoder() {
			mLogFile.close();
		}
	private:
		SqlWorkQueuePtr mRefer;
		ofstream mLogFile;
};

typedef IceUtil::Handle<ListSizeRecoder> ListSizeRecoderPtr;

#endif

